package com.jec.module.sysmonitor.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jec.module.sysmonitor.entity.view.CardView;

public interface CardViewRepository extends JpaRepository<CardView,Integer>{
	
	public CardView findOneByNetUnitIdAndSlot(int netUnitId, int slot); 
	
	public CardView findOneByNetUnitIdAndSlotAndCodeAndPortCountGreaterThanEqual(int netUnitId, int slot, int code, int portCount);
	
	public List<CardView> findAllByNetUnitIdOrderBySlotAsc(int netUnitId);
	
	public List<CardView> findAllByNetUnitIdAndCode(int netUnitId, int code);

}
